[NTG-context] SVG converter bugs

2023-07-06 Thread Max Chernoff
.org/2000/svg;> \stopbuffer \starttext \startTEXpage \includesvgbuffer[gradient] \stopTEXpage \startMPpage fill unitsquare xyscaled (200,100) withshademethod "linear" withs

[NTG-context] SVG ViewBox figure battle

2023-05-19 Thread Thangalin via ntg-context
Hi there! The following document contains SVG. Save the SVG as "problem.svg" and run the document through LMTX version 2023.05.08 17:39: % SOF \startbuffer[csvg] \stopbuffer \starttext % honours viewbox \placefigure[none]{}{\includesvgbuffer[csvg]} \page % dishonou

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Thangalin via ntg-context
t; gradientUnits="userSpaceOnUse"/> > offset="0"/> > stop-opacity="0"/> > transform="translate(-48.91 -90.879)"> > fill-opacity=".5" d="M48.769 90.936H164.64V206.96H48.769z"/> > cx="106.745" cy="148.713" r=&q

Re: [NTG-context] Radial and linear gradients

2022-12-14 Thread Hans Hagen via ntg-context
xt \placefigure{}{\includesvgbuffer[csvg][conversion=mp]} \stoptext % EOF See attached a comparison of the PDF generated using ConTeXt and the PNG file generated by exporting from Inkscape. these gradients definitions get crazier by the day ... does inkscape output a bitmap or vector pdf

[NTG-context] Radial and linear gradients

2022-12-13 Thread Thangalin via ntg-context
Hi there! Any thoughts on implementing SVG gradients in MetaPost? % SOF \startbuffer[csvg] http://www.w3.org/2000/svg; xmlns:xlink="http://www.w3.org/1999/xlink; viewBox="0 0 115.669 115.669"> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[csvg][conversion=mp]} \s

[NTG-context] Lopsided circles

2022-10-18 Thread Thangalin via ntg-context
Using 2022.09.11 20:44, there appears to be a problem with rendering some circular forms, such as: % SOT \startbuffer[circle] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[circle][conversion=mp]} \stoptext % EOT In Inkscape, this renders as a full circle without any deformation

[NTG-context] SVG path conversion misalignment

2022-09-11 Thread Thangalin via ntg-context
Hi there, % SOT \startbuffer[dna] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[dna][conversion=mp]} \stoptext % EOT In the PDF that's generated, the curve of the gray semi-circle is malformed with respect to the blackground. It's like there's a small chip. The expected result

[NTG-context] SVG text clipping issue

2022-06-29 Thread Thangalin via ntg-context
Text that's tight against its viewbox gets clipped: https://i.ibb.co/BGQVzzx/text-clipped.png Here's the code: % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbu

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Thangalin via ntg-context
!offset\relax \egroup} \permanent\tolerant\protected\def\includesvgbuffer[#1]#*[#2]% {\hbox\bgroup % no \dontleavehmode \getdummyparameters[\c!offset=\zeropoint,#2]% \clf_includesvgbuffer{#1}\dimexpr\dummyparameter\c!offset\relax \egroup} \protect \popoverloadmode \startbuffer[svg

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Hans Hagen via ntg-context
isn't the issue.) % SOF \startbuffer[svg] http://www.w3.org/2000/svg; xmlns:svg="http://www.w3.org/2000/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF This has nothing to do with SVG. Looking at the de

Re: [NTG-context] SVG text alignment issue

2022-06-28 Thread Aditya Mahajan via ntg-context
ot; >x="-48.831322" >y="15.60547" > > > style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;font-family:Roboto;-inkscape-font-specification:'Roboto, > Normal';font-variant-ligatures:normal;

[NTG-context] SVG text alignment issue

2022-06-28 Thread Thangalin via ntg-context
0/svg;> 16p13.3 \stopbuffer \starttext \placefigure[]{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
SVG generators. >> Renjin uses JFreeSVG when exporting as SVG. As you pointed out, there are no >> issues with R because it will export an SVG file without any double >> semicolons. >> >> In other words, try this: >> >> \startbuffer[svg] >> &

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Heinrich Paeßens via ntg-context
, try this: > > \startbuffer[svg] > >style="stroke:rgb(0,0,0);;fill:none" /> > > \stopbuffer > > \starttext > \placefigure{}{\includesvgbuffer[svg][conversion=mp]} > \stoptext > > If you get a black square, that's the bug. If you ge

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-09 Thread Thangalin via ntg-context
] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext If you get a black square, that's the bug. If you get a white square, then there's something different about our environment setups. Cheers! On Mon, May 9, 2022 at 1:55 AM Heinrich Paeßens wrote: >

Re: [NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
buffer[svg] > >style="stroke:rgb(0,0,0);;fill:none" /> > > \stopbuffer > > \starttext > \placefigure{}{\includesvgbuffer[svg][conversion=mp]} > \stoptext > > Remove the extra semicolon to get the expected result: > > >

[NTG-context] SVG style ignored after double semicolon

2022-05-08 Thread Thangalin via ntg-context
Hey hey, The following produces a filled square, rather than an empty one: \startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext Remove the extra semicolon to get the expected result: It appears that a style immediately following

[NTG-context] SVG transparent stroke shown

2021-05-06 Thread Thangalin
Hi again! % SOF\startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: No border around the outer white box, border around the inner green box. Actual: Border around both boxes. Version: 2021.05.06 Additional details

[NTG-context] SVG stroked path colours

2021-04-14 Thread Thangalin
A regression? % SOF \startbuffer[svg] http://www.w3.org/2000/svg; width="179" height="126" viewBox="0 0 134 94"> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Green box, black outline. Actual:

Re: [NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Hans Hagen
On 4/3/2021 8:10 PM, Thangalin wrote: Issues encountered with version 2021.03.31 18:04. 1. Comments in SVG % SOF \startbuffer[svg] http://www.w3.org/2000/svg <http://www.w3.org/2000/svg>"> \stopbuffer \starttext   \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \

[NTG-context] SVG comments, transparency, and extended font styles

2021-04-03 Thread Thangalin
Issues encountered with version 2021.03.31 18:04. 1. Comments in SVG % SOF \startbuffer[svg] http://www.w3.org/2000/svg;> \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: Black circle, no border, comment lines ignored. Actual: Em

Re: [NTG-context] SVG images inside XML setups

2021-03-09 Thread Hans Hagen
\xmlsetsetup{\xmldocument}{body|img}{xml:*} \stopxmlsetups \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:img \placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]} \placefigure{}{\externalfigure[circle.svg][conversion=mp]} \placefigure{}{\includes

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
stopxmlsetups \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:img \placefigure{}{\externalfigure[\xmlatt{#1}{src}][conversion=mp]} \placefigure{}{\externalfigure[circle.svg][conversion=mp]} \placefigure{}{\includesvgbuffer[csvg][conversion=mp]} \stopxmlsetups \xml

Re: [NTG-context] beta

2019-10-29 Thread Hans Hagen
On 10/28/2019 10:00 PM, Floris van Manen wrote: On 28-10-2019 19:20, Hans Hagen wrote: As a teaser ... it is also possible to embed svg code, as in: \startbuffer[svgtest]         \stopbuffer \startTEXpage     \includesvgbuffer[svgtest] \stopTEXpage \startTEXpage

Re: [NTG-context] beta

2019-10-28 Thread Floris van Manen
ot;10" stroke-opacity="0.3" >     fill="red" fill-opacity="0.3" >     /> >         cx="150" cy="50" r="40" >     stroke="green" stroke-width="10" >     fill="red" >     opacity=&

[NTG-context] beta

2019-10-28 Thread Hans Hagen
Hi, I uploaded a beta. In lmtx there is now a bit more advanced support for svg. A preliminary manual is included that explains a few things. As a teaser ... it is also possible to embed svg code, as in: \startbuffer[svgtest] \stopbuffer \startTEXpage \includesvgbuffer